<?php exit("breakcms");?>
<div class="showmessage">
操作{if !empty($BRK_MSG[0])}成功{else}失败{/if}<br />
{if is_array($BRK_MSG[1])}
{foreach from="$BRK_MSG[1]"}
<span style="color:#F00">{$item}</span><br/>
{/foreach}
{else}
<span style="color:#F00">{$BRK_MSG[1]}</span><br/>
{/if}
{if is_array($BRK_MSG[2]) && !empty($BRK_MSG[2][1])}
<span id="msgs"></span><a href="javascript:window.location='{$BRK_MSG[2][1]}'" id="pagechangelink" style="display: hidden">页面跳转</a>
{else}
<span id="msgs"></span><a href="javascript:window.history.go(-1)" id="pagechangelink" style="display: hidden">页面跳转</a>
{/if}
&nbsp;&nbsp;<a href="?">首页</a>

<br/>
</div>
{if (is_array($BRK_MSG[2]) && !empty($BRK_MSG[2][0])) || (!is_array($BRK_MSG[2]) && $BRK_MSG[2]==1)}
{literal}
<script type="text/javascript">
    $msgs=document.getElementById("msgs");
	$msgs.innerHTML='3';
    function goto_1(){
        if(parseInt($msgs.innerHTML)==0){
            {/literal}
            {if is_array($BRK_MSG[2]) && !empty($BRK_MSG[2][1])}
                window.location='{$BRK_MSG[2][1]}';
            {else}
                window.history.go(-1);
            {/if}
            {literal}
			return false;
        }
        $msgs.innerHTML=parseInt($msgs.innerHTML)-1+"&nbsp;秒后&nbsp;&nbsp;";
        setTimeout(goto_1,1000);
    }
    goto_1();
</script>
{/literal}
{/if}